module.exports = {
  presets: [
    [
      '@babel/preset-env',
      {
        useBuiltIns: 'usage',
        corejs: 3,
      },
    ],
    [
      '@babel/preset-react',
      {
        runtime: 'automatic', // 不用 import React 也可使用react
      },
    ],
    ['@babel/preset-typescript'],
  ],
  plugins: ['@babel/plugin-transform-runtime'],
};